@import "variables.less";
@import "mixins.less";
@import "normalize.less";
@import "utilities.less";
@import "../../less/dialog.less";
@import "login.less";
// @import "base.less";

*, *::after, *::before {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 0 !important
}
.home-bg{
    width: 100%;
    height: 100%;
    padding-top: 4%;
    background: url('img/bg.jpg') no-repeat 50%;
    background-size: cover;
}
ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

.page, .page-group {
  background: #FFF;
}

// clear: both;
.message li::after,
.item-row:after {
  content: "";
  display: table;
  clear: both;
}

// chatbox
.chatbox {
  margin: auto;
  width: 800px;
  height: 600px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #DDD;

  .main,
  .sidebar {
    height: inherit;
  }

  .sidebar {
    position: relative;
    overflow: hidden;
    float: left;
    width: 200px;
    margin-right: -200px;
    // color: #F5F5F5;
    background-color: #EEE;
    z-index: 10;
  }

  .main {
    position: relative;
    width: 100%;
    padding-left: 200px;
    overflow: hidden;
    background-color: #F5F5F5;
  }
}

// item-row
.item-row {
  overflow: hidden;
}

// item-cell
.item-cell {
  float: left;
  position: relative;
  z-index: 10;
}

.item-right {
  width: 100%;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

// sidebar
.sidebar {

}

// head-portrait
.head-portrait {
  height: 60px;
  // background-color: #111;
  img {
    width: 40px;
    height: 40px;
    border-radius: 3px;
  }
  .item-cell:first-child {
    width: 70px;
    margin-right: -70px;
    text-align: center;
  }
  .item-right {
    padding-left: 70px;
    line-height: 60px;
    font-size: 18px;
    padding-right: 10px;
  }
}

// .list-block
.list-block {
  position: absolute;
  overflow-x: hidden;
  overflow-y: scroll;
  top: 62px;
  right: 0;
  bottom: 0;
  left: 0;

  .item-row {
    padding: 5px 0;
    border-bottom: 1px solid #DDD;
    &:last-child {
      border-bottom: 0;
    }
  }

  .item-cell:first-child {
    width: 60px;
    margin-right: -60px;
    text-align: center;
  }
  .item-right {
    padding-left: 60px;
  }

  li {
    // border-top: 1px solid #222;
    cursor: pointer;
    // padding-left: 2px;
    &.active, &:hover {
      background-color: #DDD;

    }
    &.active {
      border-left: 2px solid #CCC;
    }
  }
  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 3px;
  }
  p {
    margin: 0;
  }
  .gs-title,
  .gs-describe {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gs-title {
    font-size: 16px;
  }
  .gs-describe {
    font-size: 12px;
    color: #999;
  }
}

.message-title {
  padding: 10px;
  background-color: #FFF;
  position: absolute;
  top: 0;
  right: 0;
  left: 200px;
  & + ul {
    margin-top: 40px;
  }
  z-index: 100;
}

// date-title
.date-title {
  font-size: 10px;
  color: #999;
}

// message
.message {
  padding-top: 40px;
  height: 450px;
  overflow-x: hidden;
  overflow-y: scroll;
  position: relative;
}

textarea,
input,
button {
  outline: none;
  -webkit-appearance: button;
  -webkit-appearance: none;
  border-radius: 0;
}

input,
button {
  cursor: pointer;

}

// textarea
.textarea {
  position: relative;
  height: 150px;
  textarea {
    padding: 35px 10px 10px 10px;
    width: 100%;
    height: 100%;
    border: 1px solid #DDD;
    border-right: 0;
    resize: none;
  }
  .file-group {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background-color: #EEE;
    border-top: 1px solid #DDD;
    font-size: 14px;
  }

  .button-group {
    position: absolute;
    right: 10px;
    bottom: 10px;
  }

  .submit {
    border: 1px solid #DDD;
    border-radius: 4px;
    padding: 5px 25px;
    &.tahem-denger {
      background-color: #F6321C;
      color: #FFF;
    }
  }
}

.message-item {
  padding: 10px 15px;
}

// message-left
.message-left {
  float: left;
  .msg-head-portrait,
  .message-text {
    float: left;
  }
  .message-text {
    padding-left: 10px;
  }
  .name {
    text-align: left;
  }
}

// message-right
.message-right {
  float: right;
  .msg-head-portrait,
  .message-text {
    float: right;
  }
  .message-text {
    padding-right: 10px;
  }
  .name {
    text-align: right;
  }
}

.msg-head-portrait {
  width: 30px;
  height: 30px;
  margin-top: 15px;
}

.message-text {
  max-width: 90%;
  font-size: 14px;
  .name {
    font-size: 12px;
    > span {
      padding-left: 10px;
      color: #999;
    }
  }
  .text {
    padding: 10px;
    border: 1px solid #EEE;
    background-color: #FFF;
    border-radius: 3px;
  }
}

.msg-avatar {
  width: inherit;
  height: inherit;
}

.file-group {
  .file-group-button {
    // float: left;
  }
}

.file-group-button {
  max-width: 100px;
  border: 1px solid #E7E7E7;
  background-color: #FFF;
  height: 28px;
  line-height: 28px;
  margin-right: 10px;
  border-radius: 3px;
}

button.file-group-button {
  padding: 0 10px;
}

// tab-item
.tab-item {
  display: table;
  margin: 0;
  top: 60px;
  width: 100%;
  background-color: #DDD;
  z-index: 100;
}

.tab-item-cell {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  font-size: 12px;
  // border-left: 1px solid #222;
  &.active {
    background-color: #F6321C;
    color: #FFF;

    .huizhang {
      background-color: #FFF;
      color: #F6321C;
    }
  }
  &:hover {
    background-color: #F6321C;
    color: #FFF;
  }
}

.list-group {
  margin-top: 40px;
}

.posi-abs {
  position: absolute;
  left: 0;
  right: 0;
}

// huizhang
.huizhang {
  position: absolute;
  display: block;
  top: 3px;
  right: 3px;
  width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  border-radius: 50%;
  background-color: #F6321C;
  color: #FFF;
  // border: 1px solid #f60;
}

/* login */
.container {
  max-width: 1200px;
  margin: auto
}

.rel-logo-subtitlt {
  margin-top: 13px;
  margin-bottom: 0;
}

.main-box {
  width: 100%;
  min-height: 450px;
  background-image: url('img/banner.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-background-size: contain;
  -o-background-size: contain;
  -ms-background-size: contain;

  background-color: #F1F1F1;
}

.login-content-box {
  width: 300px;
  margin-top: 30px;
  margin-right: 30px;
  background-color: #FFF;

  input {
    border: 0;
    background: 0;
    height: 40px;
    line-height: 40px;
    padding-left: 50px;
  }

}

.login-tab-box {
  display: table;
  width: 100%;
  .login-tab-link {
    display: table-cell;
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #EEE;
    cursor: pointer;
    &.active {
      color: #F6321C;
      border-bottom: 1px solid #F6321C;
    }
  }
}

.form-group {
  position: relative;
  padding: 12px;
  .form-group-icon {
    width: 40px;
    height: 40px;
    padding: 2px;
    border-right: 1px solid #DDD;
    position: absolute;
    top: 13px;
    left: 13px;
  }
  .form-group-input {
    width: 100%;
    border: 1px solid #DDD;
  }
}

.sign-button-group {
  padding: 12px;
}

.sign-button {
  padding: 8px 12px;
  background: #F6321C;
  color: #FFF;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
}

.form-group-icon.icons {
  background: url('img/login-icons.png') 0 0 no-repeat;
}

.form-group-icon.name-label {
  background-position: 1px 1px
}

.form-group-icon.pwd-label {
  background-position: -48px 0
}

.form-group-icon.tel-label {
  background-position: 0 -96px
}
.btn-fw-edit{
  button{
    float: left;
    border-top: 1px solid #E7E7E7;
    border-bottom: 1px solid #E7E7E7;
    border-left: 1px solid #E7E7E7;
    border-right: 0;
    background-color: #FFF;
    height: 28px;
    line-height: 28px;
    // border-radius: 3px;
    &:last-child{
    border-right: 1px solid #E7E7E7;
    }
  }
}
/*
* common
*/

.b_d {
  border-bottom: 1px solid #DDD;
}

.pl10 {
  padding: 0 0 0 10px;
}

.pr10 {
  padding: 0 10px 0 0;
}

.text-drak {
  color: #333;
}

.text-disabled {
  color: #999;
}

.fwn {
  font-weight: normal;
}

.float-right {
  float: right;
}

.float-left {
  float: left;
}